const path = require('path'),
  cwd = process.cwd()

const resolveUrl = dir => path.resolve(cwd, dir)

let dotenv

const paths = {
  cwd,
  dotenv: (name) => dotenv || (dotenv = resolveUrl(path.join(name, '.env')))
}

module.exports = paths